package com.aidysoft.practice.log;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogController {
    @Autowired
    LogService logService;

    @GetMapping("/add")
    @OperLog(message = "新增controller",operation = OperationType.ADD)
    public Object login(SysPolice sysPolice){
        logService.add(sysPolice);
        return sysPolice;
    }
}
